@extends('admin.common.base-master')

@section('html-head')

@endsection

@section('html-body')
    <div id="content">
        <!-- cur-position start -->
        <div id="cur-position">
            <span class="tit">当前位置：</span>
            <a href="#">商品管理</a>
        </div>

        <div class="table-box">
            <table class="table">
                <thead>
                <tr>
                    <th>ID</th>
                    <th>订单号</th>
                    <th>订单名称</th>
                    <th>订单型号</th>
                    <th>订单属性</th>
                    <th>付款总额</th>
                    <th>商品数量</th>
                    <th>收货地址</th>
                    <th>收货人</th>
                    <th>联系方式</th>
                    <th>状态</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                @if(count($orders) > 0)
                    @foreach($orders as $order)
                        <tr id="order_{{$order->id}}">
                            <td>{{$order->id}}</td>
                            <td>{{$order->order_num}}</td>
                            <td>@if($order->goods){{$order->goods->name}}@endif</td>
                            <td>@if($order->goods){{$order->goods->model}}@endif</td>
                            <td>{{$order->attr_name}}</td>
                            <td>@if($order->pay_type == 'boluobi'){{$order->coin}}（波罗币）@elseif($order->pay_type == 'wxpay'){{$order->amount}}(人民币) @endif</td>
                            <td>{{$order->num}}</td>
                            <td>{{$order->address}}</td>
                            <td>{{$order->realname}}</td>
                            <td>{{$order->phone}}</td>
                            <td>发货</td>
                            <td>
                                <a href="javascript:void(0);" class="close" data-id=""><span style="color: #515454">编辑</span></a> | <span style="color: #961212">删除</span></a>
                            </td>
                        </tr>
                    @endforeach
                @endif
                </tbody>
                <tfoot class="order-gl">

                </tfoot>
            </table>
            <!--            --><?php //echo $user->appends([])->render(); ?>
            <?php echo $orders->render(); ?>
        </div>
    </div>
    <script>
        $(function () {

        });
    </script>
@endsection